/**
 * 假期余额转折薪酬
 */
export const vocationWithdrawalChildren = [
    {
        label: '申请人',
        formId: 'employeeName',
        tag: 'Input',
        autofill: true, // 是否自动获取
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        },
        isSummary: true
    },
    {
        label: '行政机构',
        formId: 'organizationName',
        tag: 'Input',
        autofill: true,
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        },
        isSummary: true
    },
    {
        label: '假期类型',
        formId: 'leaveTypes',
        tag: 'Select',
        rules: [
            {
                required: true,
                message: '请选择假期类型'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请假类型',
            mode: 'multiple'
        },
        dataList: [
            {
                key: 'CommonYear',
                label: '年假'
            },
            {
                key: 'CommonPaid',
                label: '调休'
            }
        ]
    },
    {
        label: '假期类型',
        formId: 'leaveTypesCode',
        tag: 'Input',
        options: {
            disabled: true
        },
        inRenderDom: false,
        isSummary: true
    },
    {
        label: '年假折现天数',
        formId: 'commonYear_days',
        tag: 'Select',
        rules: [],
        options: {
            disabled: true,
            placeholder: '折现天数',
            suffixIcon: '天'
        },
        inRenderDom: false,
        isSummary: true,
        dataList: [
            {
                key: '0.5',
                label: '0.5'
            },
            {
                key: '1',
                label: '1'
            },
            {
                key: '1.5',
                label: '1.5'
            },
            {
                key: '2',
                label: '2'
            },
            {
                key: '2.5',
                label: '2.5'
            },
            {
                key: '3',
                label: '3'
            }
        ]
    },
    {
        label: '调休折现天数',
        formId: 'commonPaid_days',
        tag: 'Select',
        rules: [],
        options: {
            disabled: true,
            placeholder: '折现天数',
            suffixIcon: '天'
        },
        inRenderDom: false,
        isSummary: true,
        dataList: [
            {
                key: '0.5',
                label: '0.5'
            },
            {
                key: '1',
                label: '1'
            },
            {
                key: '1.5',
                label: '1.5'
            },
            {
                key: '2',
                label: '2'
            },
            {
                key: '2.5',
                label: '2.5'
            },
            {
                key: '3',
                label: '3'
            }
        ]
    },
    {
        label: '折现天数',
        formId: 'durationDays',
        tag: 'Select',
        rules: [],
        options: {
            disabled: true,
            placeholder: '折现天数',
            suffix: '天'
        },
        inRenderDom: false,
        isSummary: true
    },
    {
        label: '备注说明',
        formId: 'reason',
        tag: 'TextArea',
        options: {
            disabled: true,
            placeholder: '请输入备注说明',
            maxLength: 500
        }
    },
    {
        label: '附件',
        formId: 'OssUpload',
        tag: 'OssUpload',
        type: 'OssUpload',
        key: 'OssUpload',
        options: {},
        cmpType: 'common',
        tagIcon: 'iconprocess_common_annex_icon1',
        action: '/api/resource/public/oss/producePutPreSignUrls',
        rules: [],
        name: 'file',
        buttonText: '点击上传附件',
        fileSize: 20,
        sizeUnit: 'MB',
        proCondition: false,
        uploadProps: {
            multiple: true, // 多文件
            dragAble: false, // 是否为拖拽上传
            checkFileSize: 0, // 限制单文件上传最大值，单位为MB
            checkFileType: '', // 允许上传的文件格式
            maxCount: 10, // 上传的文件个数上限
            help: null // 帮助文案
        }
    }
];

export const vocationWithdrawalControl = {
    label: '假期余额转折薪酬',
    cmpType: 'custom',
    formId: '',
    key: 'VocationWithdrawal',
    tag: 'VocationWithdrawal',
    children: vocationWithdrawalChildren
};
